home *** CD-ROM | disk | FTP | other *** search
/ Pro One: Netcracker Netscape Navigator / ProOne: Netcracker Netscape Navigator.iso / pc / nc / nct04060.geo / 00027.ls < prev    next >
Encoding:
Text File  |  1997-03-19  |  18.4 KB  |  849 lines

  1. on initLesson
  2.   DisableBTNS()
  3.   setRollName(EMPTY)
  4.   set the visible of sprite 48 to 0
  5.   updateStage()
  6.   InitSnakelogic()
  7.   RestoreHilites()
  8.   Set_BACKSprite(47)
  9.   Set_NEXTSprite(46)
  10.   Set_HelpSprite(45)
  11.   Set_SoundSprite(44)
  12.   Set_NOTEPADSprite(43)
  13.   Set_GLOSSARYSprite(42)
  14.   setTimer(30)
  15.   set_MarkSprite(2)
  16.   Set_NavigatorHL(5)
  17.   Set_MainSprite(6)
  18.   Set_IndexSprite(7)
  19.   Set_FindSprite(9)
  20.   Set_TagWDSprite(8)
  21.   repeat with i = 42 to 47
  22.     set the immediate of sprite i to 1
  23.     set the puppet of sprite i to 1
  24.   end repeat
  25.   set the puppet of sprite get_NavigatorHL() to 1
  26.   set the puppet of sprite Get_MarkSprite() to 1
  27.   set the mouseDownScript to "CheckOpenWindow"
  28.   Set_NEXT(1)
  29. end
  30.  
  31. on InitSubjectSprite
  32.   if Get_ScreenSubject() <> "00" then
  33.     Set_SubjectSprite(39)
  34.     set the puppet of sprite Get_SubjectSprite() to 1
  35.     set the height of sprite Get_SubjectSprite() to integer(line integer(Get_ScreenSubject()) of Get_SubjectHeight())
  36.     UpdateCursors(Get_SubjectSprite(), 4)
  37.   end if
  38. end
  39.  
  40. on GoToIntro
  41.   if Get_ScreenSubject() <> "00" then
  42.     set theNum to integer(Get_ScreenSubject())
  43.     SaveSeenScreens()
  44.     go(1, "NCS" & Get_ScreenSubject() & "010.GEO")
  45.   end if
  46. end
  47.  
  48. on Set_SubjectSprite theSp
  49.   global SubjectSprite
  50.   set SubjectSprite to theSp
  51. end
  52.  
  53. on Get_SubjectSprite
  54.   global SubjectSprite
  55.   return SubjectSprite
  56. end
  57.  
  58. on Set_SubjectHeight theSp
  59.   global SubjectHeight
  60.   set SubjectHeight to theSp
  61. end
  62.  
  63. on Get_SubjectHeight
  64.   global SubjectHeight
  65.   return SubjectHeight
  66. end
  67.  
  68. on CheckForTagWd
  69.   global TagWD, IndexWD, FindWD, WordWD, Find2WD
  70.   if objectp(TagWD) or objectp(IndexWD) or objectp(FindWD) or objectp(Find2WD) or objectp(WordWD) then
  71.     set the cursor of sprite 48 to [400, 401]
  72.   end if
  73. end
  74.  
  75. on PlaySound theSnd
  76.   global PCDEL
  77.   if Get_PlayDub() then
  78.     sound playFile 2, the pathName & "SND04" & PCDEL & theSnd
  79.   end if
  80. end
  81.  
  82. on GoMain
  83.   sound stop 2
  84.   SaveSeenScreens()
  85.   go(1, "NC_MM010.GEO")
  86. end
  87.  
  88. on GoFind
  89.   global FindWD, CDfilePath, PCDEL
  90.   if objectp(FindWD) then
  91.     forget(FindWD)
  92.   end if
  93.   set the cursor of sprite 48 to [400, 401]
  94.   set FindWD to window (CDfilePath & "WDS" & PCDEL & "NC_FIND.GEO")
  95.   set the rect of FindWD to rect(the stageLeft + 221, the stageTop + 4, the stageLeft + 541, the stageTop + 164)
  96.   set the titleVisible of FindWD to 0
  97.   set the modal of FindWD to 1
  98.   open(FindWD)
  99. end
  100.  
  101. on HideFINDWindow
  102.   global FindWD
  103.   if objectp(FindWD) then
  104.     forget(FindWD)
  105.   end if
  106. end
  107.  
  108. on closeFindWindow
  109.   global FindWD
  110.   if objectp(FindWD) then
  111.     forget(FindWD)
  112.   end if
  113.   set the cursor of sprite 48 to 0
  114.   tell the stage
  115.     continue()
  116.   end tell
  117. end
  118.  
  119. on OpenFind2WD theData
  120.   global Find2WD, CDfilePath, PCDEL
  121.   HideFINDWindow()
  122.   set Find2WD to window (CDfilePath & "WDS" & PCDEL & "NC_FIND2.GEO")
  123.   set the rect of Find2WD to rect(the stageLeft + 48, the stageTop + 4, the stageLeft + 541, the stageTop + 212)
  124.   set the titleVisible of Find2WD to 0
  125.   set the modal of Find2WD to 1
  126.   tell Find2WD
  127.     UpdateSelection(theData)
  128.   end tell
  129.   open(Find2WD)
  130. end
  131.  
  132. on CloseFind2Window
  133.   global Find2WD
  134.   if objectp(Find2WD) then
  135.     forget(Find2WD)
  136.   end if
  137.   set the cursor of sprite 48 to 0
  138.   tell the stage
  139.     continue()
  140.   end tell
  141. end
  142.  
  143. on GoIndex
  144.   global IndexWD, CDfilePath, PCDEL
  145.   if objectp(IndexWD) then
  146.     forget(IndexWD)
  147.   end if
  148.   set the cursor of sprite 48 to [400, 401]
  149.   set IndexWD to window (CDfilePath & "WDS" & PCDEL & "NC_INDEX.GEO")
  150.   set the rect of IndexWD to rect(the stageLeft + 220, the stageTop + 4, the stageLeft + 541, the stageTop + 276)
  151.   set the titleVisible of IndexWD to 0
  152.   set the modal of IndexWD to 1
  153.   tell IndexWD
  154.     RonenInit()
  155.   end tell
  156.   open(IndexWD)
  157. end
  158.  
  159. on OpenWordWD theData
  160.   global WordWD, CDfilePath, PCDEL
  161.   HIdeIndexWindow()
  162.   set WordWD to window (CDfilePath & "WDS" & PCDEL & "NC_WORD.GEO")
  163.   set the rect of WordWD to rect(the stageLeft + 48, the stageTop + 4, the stageLeft + 541, the stageTop + 212)
  164.   set the titleVisible of WordWD to 0
  165.   set the modal of WordWD to 1
  166.   tell WordWD
  167.     UpdateSelection(theData)
  168.   end tell
  169.   open(WordWD)
  170. end
  171.  
  172. on CloseWordWindow
  173.   global WordWD
  174.   if objectp(WordWD) then
  175.     forget(WordWD)
  176.   end if
  177.   set the cursor of sprite 48 to 0
  178.   tell the stage
  179.     continue()
  180.   end tell
  181. end
  182.  
  183. on HIdeIndexWindow
  184.   global IndexWD
  185.   if objectp(IndexWD) then
  186.     forget(IndexWD)
  187.   end if
  188. end
  189.  
  190. on CloseIndexWindow
  191.   global IndexWD
  192.   if objectp(IndexWD) then
  193.     forget(IndexWD)
  194.   end if
  195.   set the cursor of sprite 48 to 0
  196.   tell the stage
  197.     continue()
  198.   end tell
  199. end
  200.  
  201. on GoIndexMovie thekind
  202.   if thekind = "tool" then
  203.     go("Init" & Get_ScreenSubject(), Get_IndexMovie())
  204.   else
  205.     go(1, Get_IndexMovie())
  206.   end if
  207. end
  208.  
  209. on set_IndexMovie theMoov
  210.   global IndexMovie
  211.   set IndexMovie to theMoov
  212. end
  213.  
  214. on Get_IndexMovie theMoov
  215.   global IndexMovie
  216.   return IndexMovie
  217. end
  218.  
  219. on GoTags
  220.   global TagWD, TAGS_DATA, TAGS_TITLES, TAGS_LIST, CDfilePath, PCDEL
  221.   if objectp(TagWD) then
  222.     forget(TagWD)
  223.   end if
  224.   set the cursor of sprite 48 to [400, 401]
  225.   set TagWD to window (CDfilePath & "WDS" & PCDEL & "NC_TAGS.GEO")
  226.   set the rect of TagWD to rect(the stageLeft + 274, the stageTop + 4, the stageLeft + 539, the stageTop + 249)
  227.   set the titleVisible of TagWD to 0
  228.   set the modal of TagWD to 1
  229.   tell TagWD
  230.     UpdateFields()
  231.     PlaceMySlider()
  232.     init()
  233.   end tell
  234.   open(TagWD)
  235. end
  236.  
  237. on OpenRenameWD theLine
  238.   global RenameWD, CDfilePath, PCDEL
  239.   set RenameWD to window (CDfilePath & "WDS" & PCDEL & "NC_RNAME.GEO")
  240.   set the rect of RenameWD to rect(the stageLeft + 286, the stageTop + 87, the stageLeft + 526, the stageTop + 199)
  241.   set the titleVisible of RenameWD to 0
  242.   set the modal of RenameWD to 1
  243.   tell RenameWD
  244.     UpdateLine(theLine)
  245.   end tell
  246.   open(RenameWD)
  247. end
  248.  
  249. on UpdateRenameWD theText
  250.   global TagWD
  251.   tell TagWD
  252.     UpdateRename(theText)
  253.   end tell
  254.   CloseRenameWD()
  255. end
  256.  
  257. on CloseRenameWD
  258.   global RenameWD
  259.   if objectp(RenameWD) then
  260.     forget(RenameWD)
  261.   end if
  262. end
  263.  
  264. on OpenSureWD
  265.   global SureWD, CDfilePath, PCDEL
  266.   set SureWD to window (CDfilePath & "WDS" & PCDEL & "NC_SURE.GEO")
  267.   set the rect of SureWD to rect(the stageLeft + 286, the stageTop + 87, the stageLeft + 526, the stageTop + 199)
  268.   set the titleVisible of SureWD to 0
  269.   set the modal of SureWD to 1
  270.   open(SureWD)
  271. end
  272.  
  273. on CloseSureWD
  274.   global SureWD
  275.   if objectp(SureWD) then
  276.     forget(SureWD)
  277.   end if
  278. end
  279.  
  280. on ClearAllTags
  281.   global CardTitles, TAGS_DATA, TAGS_TITLES, TAGS_LIST, TagWD
  282.   CloseSureWD()
  283.   set the castNum of sprite Get_MarkSprite() to the number of cast ("V_" & "UNMARK")
  284.   set TAGS_LIST to []
  285.   set TAGS_TITLES to EMPTY
  286.   set TAGS_DATA to EMPTY
  287.   tell TagWD
  288.     UpdateFields()
  289.     PlaceMySlider()
  290.     init()
  291.   end tell
  292.   updateStage()
  293. end
  294.  
  295. on CloseTagWindow
  296.   global TagWD
  297.   if objectp(TagWD) then
  298.     forget(TagWD)
  299.   end if
  300.   set the cursor of sprite 48 to 0
  301.   tell the stage
  302.     continue()
  303.   end tell
  304. end
  305.  
  306. on GoTagMovie
  307.   go("Init" & Get_ScreenSubject(), Get_TagMovie())
  308. end
  309.  
  310. on Set_TagMovie theMovie
  311.   global TagMovie
  312.   set TagMovie to theMovie
  313. end
  314.  
  315. on Get_TagMovie
  316.   global TagMovie
  317.   return TagMovie
  318. end
  319.  
  320. on MarkScreen toMark
  321.   global CardTitles, TAGS_DATA, TAGS_TITLES, TAGS_LIST
  322.   set the castNum of sprite Get_MarkSprite() to the number of cast ("V_" & toMark)
  323.   set movieName to the movieName
  324.   if toMark = "MARK" then
  325.     setAt(TAGS_LIST, count(TAGS_LIST) + 1, movieName)
  326.     set LineNum to count(TAGS_LIST)
  327.     set TheTitle to item Get_CDcounter() of line integer(Get_CurrentTool()) of CardTitles
  328.     put TheTitle into line LineNum of TAGS_TITLES
  329.     put movieName into item 1 of line LineNum of TAGS_DATA
  330.     put Get_CurrentTool() into item 2 of line LineNum of TAGS_DATA
  331.     put Get_ScreenSubject() into item 3 of line LineNum of TAGS_DATA
  332.   else
  333.     set itemNum to getOne(TAGS_LIST, movieName)
  334.     deleteAt(TAGS_LIST, itemNum)
  335.     delete line itemNum of TAGS_TITLES
  336.     delete line itemNum of TAGS_DATA
  337.   end if
  338.   updateStage()
  339. end
  340.  
  341. on UpdateMark
  342.   global TAGS_LIST
  343.   set movieName to the movieName
  344.   if getOne(TAGS_LIST, movieName) then
  345.     set the castNum of sprite Get_MarkSprite() to the number of cast "V_MARK"
  346.   end if
  347. end
  348.  
  349. on HandleSound
  350.   global volumeWindow, CDfilePath, PCDEL
  351.   if objectp(volumeWindow) then
  352.     forget(volumeWindow)
  353.   end if
  354.   EnableBtn("SOUND", get_SOUNDSprite())
  355.   set volumeWindow to window (CDfilePath & "WDS" & PCDEL & "NC_VOL.GEO")
  356.   set the rect of volumeWindow to rect(the stageLeft + 445, the stageTop + 63, the stageLeft + 574, the stageTop + 126)
  357.   set the titleVisible of volumeWindow to 0
  358.   tell volumeWindow
  359.     RestoreSoundStatus()
  360.   end tell
  361.   open(volumeWindow)
  362. end
  363.  
  364. on handleQuit
  365.   global QuitWindow, CDfilePath, PCDEL
  366.   cursor(4)
  367.   if objectp(QuitWindow) then
  368.     forget(QuitWindow)
  369.   end if
  370.   set the cursor of sprite 48 to [400, 401]
  371.   set QuitWindow to window (CDfilePath & "WDS" & PCDEL & "NC_QUIT.GEO")
  372.   set the rect of QuitWindow to rect(the stageLeft + 162, the stageTop + 122, the stageLeft + 478, the stageTop + 358)
  373.   set the titleVisible of QuitWindow to 0
  374.   set the modal of QuitWindow to 1
  375.   open(QuitWindow)
  376. end
  377.  
  378. on handleHELP
  379.   EnableBtn("HELP", get_HELPSprite())
  380.   openHelpWd()
  381. end
  382.  
  383. on openHelpWd
  384.   global helpWD, lastFrame, CDfilePath, PCDEL
  385.   set the cursor of sprite 48 to [400, 401]
  386.   set helpWD to window (CDfilePath & "WDS" & PCDEL & "NC_HLP.GEO")
  387.   set the rect of helpWD to rect(the stageLeft + 62, the stageTop + 28, the stageLeft + 586, the stageTop + 444)
  388.   set the titleVisible of helpWD to 0
  389.   set the modal of helpWD to 1
  390.   open(helpWD)
  391.   set lastFrame to the frame
  392.   go("helpLoop")
  393. end
  394.  
  395. on closeHelpWd
  396.   global helpWD, lastFrame
  397.   set the cursor of sprite 48 to 0
  398.   forget(helpWD)
  399.   go(lastFrame)
  400. end
  401.  
  402. on HandleNEXT
  403.   GoNext()
  404.   EnableBtn("NEXT", get_NEXTSprite())
  405. end
  406.  
  407. on HandleBACK
  408.   EnableBtn("BACK", get_BACKSprite())
  409.   EnableBtn("NEXT", get_NEXTSprite())
  410.   HideLastStep()
  411.   Set_NEXT(1)
  412.   sound stop 2
  413.   go("start")
  414. end
  415.  
  416. on HandleGLOSSARY
  417.   global DicWindow
  418.   EnableBtn("GLOSSARY", Get_GLOSSARYSprite())
  419.   set the cursor of sprite 48 to [400, 401]
  420.   open(DicWindow)
  421.   tell the stage
  422.     pause()
  423.   end tell
  424.   tell DicWindow
  425.     go(2)
  426.   end tell
  427. end
  428.  
  429. on closeGLOSSARYwindow
  430.   set the cursor of sprite 48 to 0
  431.   continue()
  432. end
  433.  
  434. on closeNotePadWindow
  435.   set the cursor of sprite 48 to 0
  436.   continue()
  437. end
  438.  
  439. on HandleNOTEPAD
  440.   global NoteBookWindow, CDfilePath, PCDEL
  441.   EnableBtn("NOTEPAD", Get_NOTEPADSprite())
  442.   set the cursor of sprite 48 to [400, 401]
  443.   if objectp(NoteBookWindow) then
  444.     forget(NoteBookWindow)
  445.   end if
  446.   set NoteBookWindow to window (CDfilePath & "WDS" & PCDEL & "NC_PAD.GEO")
  447.   set the rect of NoteBookWindow to rect(the stageLeft + 7, the stageTop + 247, the stageLeft + 209, the stageTop + 419)
  448.   set NBRect to the rect of NoteBookWindow
  449.   set x1 to getAt(NBRect, 1)
  450.   set y1 to getAt(NBRect, 2)
  451.   set x2 to getAt(NBRect, 3)
  452.   set y2 to getAt(NBRect, 4)
  453.   set the modal of NoteBookWindow to 1
  454.   set the windowType of NoteBookWindow to 2
  455.   set the titleVisible of window "NoteBook" to 0
  456.   open(NoteBookWindow)
  457. end
  458.  
  459. on createNoteBook
  460.   global NBPrintWindow, CDfilePath, PCDEL
  461.   if objectp(NBPrintWindow) then
  462.     forget(NBPrintWindow)
  463.   end if
  464.   set NBPrintWindow to window (CDfilePath & "WDS" & PCDEL & "NC_PRINT.GEO")
  465.   set StageRect to the rect of the stage
  466.   set x1 to getAt(StageRect, 1)
  467.   set y1 to getAt(StageRect, 2)
  468.   set x2 to getAt(StageRect, 3)
  469.   set y2 to getAt(StageRect, 4)
  470.   set the rect of NBPrintWindow to rect(x1, y1, x1 + 640, y1 + 480)
  471.   set NBRect to the rect of NBPrintWindow
  472.   set the fileName of NBPrintWindow to "Auto Page SetUp"
  473.   set the windowType of NBPrintWindow to 2
  474.   open(NBPrintWindow)
  475. end
  476.  
  477. on closePrintWindow
  478.   RestoreHilites()
  479. end
  480.  
  481. on closeQuitWindow
  482.   global QuitWindow
  483.   set the cursor of sprite 48 to 0
  484.   forget(QuitWindow)
  485.   continue()
  486. end
  487.  
  488. on leaveApplication
  489.   global QuitWindow, UsersData, TheBackWindow
  490.   forget(QuitWindow)
  491.   if the machineType <> 256 then
  492.   end if
  493.   quit()
  494. end
  495.  
  496. on keyDown
  497.   if not get_Disabled() then
  498.     if the commandDown and ((the key = "q") or (the key = ".")) then
  499.       handleQuit()
  500.     else
  501.       if (the keyCode = 76) or (the keyCode = 36) then
  502.         HandleNEXT()
  503.       else
  504.         pass()
  505.       end if
  506.     end if
  507.   else
  508.     if (the keyCode = 76) or (the keyCode = 36) then
  509.       set cursorNum to the cursor of sprite get_showMeSP()
  510.       if listp(cursorNum) then
  511.         if getAt(cursorNum, 1) = 404 then
  512.           handleShowMe()
  513.           return 
  514.         end if
  515.       end if
  516.     end if
  517.     pass()
  518.   end if
  519. end
  520.  
  521. on CheckOpenWindow
  522.   global volumeWindow
  523.   if objectp(volumeWindow) then
  524.     forget(volumeWindow)
  525.     continue()
  526.   end if
  527. end
  528.  
  529. on CheckRollOver
  530.   if rollOver(get_IndexSprite()) then
  531.     set the castNum of sprite get_NavigatorHL() to the number of cast "Index-HL"
  532.     set Hloc to the locH of sprite get_IndexSprite()
  533.     set Vloc to the locV of sprite get_IndexSprite()
  534.   else
  535.     if rollOver(get_FindSprite()) then
  536.       set the castNum of sprite get_NavigatorHL() to the number of cast "Find-HL"
  537.       set Hloc to the locH of sprite get_FindSprite()
  538.       set Vloc to the locV of sprite get_FindSprite()
  539.     else
  540.       if rollOver(Get_TagWdSprite()) then
  541.         set the castNum of sprite get_NavigatorHL() to the number of cast "TagWD-HL"
  542.         set Hloc to the locH of sprite Get_TagWdSprite()
  543.         set Vloc to the locV of sprite Get_TagWdSprite()
  544.       else
  545.         set Hloc to EMPTY
  546.       end if
  547.     end if
  548.   end if
  549.   if Hloc <> EMPTY then
  550.     set the locH of sprite get_NavigatorHL() to Hloc
  551.     set the locV of sprite get_NavigatorHL() to Vloc
  552.     set the visible of sprite get_NavigatorHL() to 1
  553.     updateStage()
  554.   else
  555.     set the visible of sprite get_NavigatorHL() to 0
  556.     updateStage()
  557.   end if
  558. end
  559.  
  560. on setDefaultCursor
  561.   set cursorList to getCursorList()
  562.   set counter to count(cursorList)
  563.   repeat with i = 1 to counter
  564.     set currItem to getAt(cursorList, i)
  565.     if currItem <> 0 then
  566.       set CursorCastNum to getCursor(currItem)
  567.       set the cursor of sprite i to [CursorCastNum, CursorCastNum + 1]
  568.     end if
  569.   end repeat
  570. end
  571.  
  572. on UpdateCursors theSp, theCursor
  573.   global cursorList
  574.   setAt(cursorList, theSp, theCursor)
  575.   if theCursor = 0 then
  576.     set the cursor of sprite theSp to theCursor
  577.   else
  578.     set CursorCastNum to getCursor(theCursor)
  579.     set the cursor of sprite theSp to [CursorCastNum, CursorCastNum + 1]
  580.   end if
  581. end
  582.  
  583. on setEmptyCursor
  584.   set cursorList to getCursorList()
  585.   set counter to count(cursorList)
  586.   repeat with i = 1 to counter
  587.     set currItem to getAt(cursorList, i)
  588.     if currItem <> 0 then
  589.       set the cursor of sprite i to 0
  590.       setAt(cursorList, i, 0)
  591.     end if
  592.   end repeat
  593. end
  594.  
  595. on setCursorTool int
  596.   global CursorTool
  597.   set CursorTool to int
  598. end
  599.  
  600. on initCursorCastNum
  601.   global CursorCastNum
  602.   set CursorCastNum to "400,402,404,406"
  603. end
  604.  
  605. on getCursor cursorNum
  606.   global CursorCastNum
  607.   return integer(item cursorNum of CursorCastNum)
  608. end
  609.  
  610. on initCursorList list
  611.   global cursorList
  612.   if list = 1 then
  613.     set cursorList to [2, 3, 4, 0, 0, 4, 3, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3]
  614.   end if
  615.   setDefaultCursor()
  616. end
  617.  
  618. on getCursorList
  619.   global cursorList
  620.   return cursorList
  621. end
  622.  
  623. on ___BTNS_HANDLERS___
  624. end
  625.  
  626. on switchButt spriteNum, castDown, macroName
  627.   if getRollName() <> EMPTY then
  628.     set spNum to EMPTY
  629.     do("put get_" & getRollName() & "Sprite() into spNum")
  630.     set the castNum of sprite spNum to the number of cast getRollName()
  631.     setRollName(EMPTY)
  632.   end if
  633.   set flag to 0
  634.   set SaveCast to the castNum of sprite spriteNum
  635.   set flag to swapCast(spriteNum, SaveCast, castDown)
  636.   repeat while the stillDown
  637.     set flag to swapCast(spriteNum, SaveCast, castDown)
  638.   end repeat
  639.   if flag = 1 then
  640.     sound stop 2
  641.     do(macroName)
  642.   end if
  643. end
  644.  
  645. on swapCast spriteNum, SaveCast, castDown
  646.   if rollOver(spriteNum) then
  647.     set the castNum of sprite spriteNum to the number of cast castDown
  648.     updateStage()
  649.     return 1
  650.   else
  651.     set the castNum of sprite spriteNum to the number of cast SaveCast
  652.     updateStage()
  653.     return 0
  654.   end if
  655. end
  656.  
  657. on DisableBtn btnName, btnSprite
  658.   set the castNum of sprite btnSprite to the number of cast (btnName & "_F")
  659. end
  660.  
  661. on EnableBtn btnName, btnSprite
  662.   set the castNum of sprite btnSprite to the number of cast btnName
  663. end
  664.  
  665. on setRollName theName
  666.   global RollName
  667.   set RollName to theName
  668. end
  669.  
  670. on getRollName
  671.   global RollName
  672.   return RollName
  673. end
  674.  
  675. on Set_NOTEPADSprite theSp
  676.   global NOTEPADSprite
  677.   set NOTEPADSprite to theSp
  678. end
  679.  
  680. on Get_NOTEPADSprite
  681.   global NOTEPADSprite
  682.   return NOTEPADSprite
  683. end
  684.  
  685. on Set_GLOSSARYSprite theSp
  686.   global GLOSSARYSprite
  687.   set GLOSSARYSprite to theSp
  688. end
  689.  
  690. on Get_GLOSSARYSprite
  691.   global GLOSSARYSprite
  692.   return GLOSSARYSprite
  693. end
  694.  
  695. on Set_SoundSprite theSp
  696.   global SoundSprite
  697.   set SoundSprite to theSp
  698. end
  699.  
  700. on get_SOUNDSprite
  701.   global SoundSprite
  702.   return SoundSprite
  703. end
  704.  
  705. on Set_HelpSprite theSp
  706.   global HelpSprite
  707.   set HelpSprite to theSp
  708. end
  709.  
  710. on get_HELPSprite
  711.   global HelpSprite
  712.   return HelpSprite
  713. end
  714.  
  715. on Set_NEXTSprite theSp
  716.   global NEXTSprite
  717.   set NEXTSprite to theSp
  718. end
  719.  
  720. on get_NEXTSprite
  721.   global NEXTSprite
  722.   return NEXTSprite
  723. end
  724.  
  725. on Set_BACKSprite theSp
  726.   global BACKSprite
  727.   set BACKSprite to theSp
  728. end
  729.  
  730. on get_BACKSprite
  731.   global BACKSprite
  732.   return BACKSprite
  733. end
  734.  
  735. on Set_NavigatorHL theSp
  736.   global NavigatorHL
  737.   set NavigatorHL to theSp
  738. end
  739.  
  740. on get_NavigatorHL
  741.   global NavigatorHL
  742.   return NavigatorHL
  743. end
  744.  
  745. on Set_IndexSprite theSp
  746.   global IndexSprite
  747.   set IndexSprite to theSp
  748. end
  749.  
  750. on get_IndexSprite
  751.   global IndexSprite
  752.   return IndexSprite
  753. end
  754.  
  755. on Set_TagWDSprite theSp
  756.   global TagWdSprite
  757.   set TagWdSprite to theSp
  758. end
  759.  
  760. on Get_TagWdSprite
  761.   global TagWdSprite
  762.   return TagWdSprite
  763. end
  764.  
  765. on Set_FindSprite theSp
  766.   global FindSprite
  767.   set FindSprite to theSp
  768. end
  769.  
  770. on get_FindSprite
  771.   global FindSprite
  772.   return FindSprite
  773. end
  774.  
  775. on Set_MainSprite theSp
  776.   global MainSprite
  777.   set MainSprite to theSp
  778. end
  779.  
  780. on get_MainSprite
  781.   global MainSprite
  782.   return MainSprite
  783. end
  784.  
  785. on Set_NEXT theSp
  786.   global next
  787.   set next to theSp
  788. end
  789.  
  790. on Get_NEXT
  791.   global next
  792.   return next
  793. end
  794.  
  795. on Set_PlayDub theMode
  796.   global PlayDub
  797.   set PlayDub to theMode
  798. end
  799.  
  800. on Get_PlayDub
  801.   global PlayDub
  802.   return PlayDub
  803. end
  804.  
  805. on Set_ScreenSubject theNum
  806.   global ScreenSubject
  807.   set ScreenSubject to theNum
  808. end
  809.  
  810. on Get_ScreenSubject
  811.   global ScreenSubject
  812.   return ScreenSubject
  813. end
  814.  
  815. on set_MarkSprite theNum
  816.   global MarkSprite
  817.   set MarkSprite to theNum
  818. end
  819.  
  820. on Get_MarkSprite
  821.   global MarkSprite
  822.   return MarkSprite
  823. end
  824.  
  825. on setTimer int
  826.   global theTime
  827.   set theTime to int
  828. end
  829.  
  830. on getTimer
  831.   global theTime
  832.   return theTime
  833. end
  834.  
  835. on DisableBTNS
  836.   global DisableMode
  837.   set DisableMode to 1
  838. end
  839.  
  840. on EnableBtns
  841.   global DisableMode
  842.   set DisableMode to 0
  843. end
  844.  
  845. on get_Disabled
  846.   global DisableMode
  847.   return DisableMode
  848. end
  849.